
package com.ami.kvm.imageredir;

import java.nio.ByteBuffer;

public class IUSBSCSIPacket {
	private IUSBHeader header;
	private int readLen;
	private int tagNo;
	private byte dataDir;
	private SCSICommandPacket commandPkt;
	private SCSIStatusPacket statusPkt;
	private int dataLen;
	private byte data;
	private int[] values;

	public IUSBSCSIPacket(ByteBuffer paramByteBuffer) {
		paramByteBuffer.rewind();
		setHeader(new IUSBHeader(paramByteBuffer));
		setReadLen(paramByteBuffer.getInt());
		setTagNo(paramByteBuffer.getInt());
		setDataDir(paramByteBuffer.get());
		setCommandPkt(new SCSICommandPacket(paramByteBuffer));
		setStatusPkt(new SCSIStatusPacket(paramByteBuffer));
		setDataLen(paramByteBuffer.getInt());
		paramByteBuffer.rewind();
	}

	public int getReadLen() {
		return this.readLen;
	}

	public void setReadLen(int paramInt) {
		this.readLen = (paramInt & 0xFF);
	}

	public int getTagNo() {
		return this.tagNo;
	}

	public void setTagNo(int paramInt) {
		this.tagNo = (paramInt & 0xFF);
	}

	public int getDataDir() {
		return this.dataDir;
	}

	public void setDataDir(int paramInt) {
		this.dataDir = ((byte) paramInt);
	}

	public int getDataLen() {
		return this.dataLen;
	}

	public void setDataLen(int paramInt) {
		this.dataLen = paramInt;
	}

	public int getData() {
		return this.data;
	}

	public void setData(int paramInt) {
		this.data = ((byte) paramInt);
	}

	public IUSBHeader getHeader() {
		return this.header;
	}

	public void setHeader(IUSBHeader paramIUSBHeader) {
		this.header = paramIUSBHeader;
	}

	public SCSICommandPacket getCommandPkt() {
		return this.commandPkt;
	}

	public void setCommandPkt(SCSICommandPacket paramSCSICommandPacket) {
		this.commandPkt = paramSCSICommandPacket;
	}

	public SCSIStatusPacket getStatusPkt() {
		return this.statusPkt;
	}

	private void setStatusPkt(SCSIStatusPacket paramSCSIStatusPacket) {
		this.statusPkt = paramSCSIStatusPacket;
	}

	public int[] getValues() {
		return this.values;
	}

	public void setValues(int[] paramArrayOfInt) {
		this.values = paramArrayOfInt;
	}
}

/*
 * Location:
 * D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\kvm\imageredir\IUSBSCSIPacket
 * .class Java compiler version: 5 (49.0) JD-Core Version: 0.7.1
 */